import { IsOptional } from "class-validator";
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { QueryDto } from "/@/common/dto/query.dto";

export class GetOrderDto extends QueryDto {
  @IsOptional()
  @ApiPropertyOptional({ description: "Collectid" })
  readonly id: number;

  @IsOptional()
  @ApiPropertyOptional({ description: "用户id" })
  readonly status: string;

  @IsOptional()
  @ApiPropertyOptional({ description: "商品id" })
  readonly phone: string;
}

export class DeliverGoodsDto {
  @ApiProperty({ description: "订单号" })
  readonly id: number;

  @ApiProperty({ description: "快递单号" })
  readonly express_no: string;
}
export class ReceivedGoodsDto {
  @ApiProperty({ description: "订单号" })
  readonly id: number;
}
